function updateUsersInfo() {
    var avatar = $("#avatar").val();
    var nike = $("#nike").val();
    var email = $("#email").val();
    if (avatar == "") {
        mviewToastr("warning", "请设置账号头像!");
        return;
    }
    if (nike == "") {
        mviewToastr("warning", "请输入账号昵称!");
        return;
    }
    if (email == "") {
        mviewToastr("warning", "请填写邮箱号码!");
        return;
    }
    var emailRight = checkEmail(email);
    if (!emailRight) {
        mviewToastr("warning", "请输入正确的邮箱地址!");
        return;
    }
    $("#usersUpdateForm").submit();
}

function checkEmail(email) {
    var emailRegExp = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    var checkSuccess = emailRegExp.test(email);
    if (checkSuccess) {
        return true;
    } else {
        return false;
    }
}
